package cn.yangliu.jdbc.annotation;

import cn.yangliu.jdbc.dymanicdb.DataSourceEnum;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * annotation 动态数据源
 *
 * @author Xiong Hao
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface DynamicDataSource {
    /**
     * dataSource name
     *
     * @return
     */
    DataSourceEnum value() default DataSourceEnum.DEFAULT;
}
